import request from "@/util/axios";

export const getCaptcha = () =>
    request({
        url: "/api/auth/captcha",
        method: "get"
    })

export const login = (formData) =>
    request({
        url: "/api/auth/login",
        method: "post",
        data: formData
    })

export const register = (formData) =>
    request({
        url: "/api/auth/register",
        method: "post",
        data: formData
    })

export const sendEmailCode = (formData) =>
    request({
        url: "/api/auth/sendEmailCode",
        method: "post",
        data: formData
    })

export const resetPwd = (formData) =>
    request({
        url: "/api/auth/resetPwd",
        method: "post",
        data: formData
    })